import time


from my_package.buy_ticket import buy_ticket_by_account_list, buy_ticket_fast
from my_package.ring_pk import sign_up_account_list, pk_by_account_list_vip

#
app_title_list = ["xqolhm1", "xqolhm2", "xqolhm4", "xqolhm5", "xqolhm6", "xqolhm7", "xqolhm8", "xqolhm9", "xqolhm10"
    , "xqolhm11", "xqolhm12", "xqolhm13", "xqolhm14", "xqolhm17", "xqolhm18", "xqolhm19"
    , "hujun6", "hujun8", "hujun9", "hujun20", "hujun21", "hujun22"
    , "xqolxz1", "xqolxz2", "xqolxz3", "xqolxz4", "xqolxz5", "xqolxz6"
                  ]

def pk_100(num = 40, buy_ticket=False, sign_up=True, pk=True):
    # 买券
    if buy_ticket:
        buy_ticket_fast(num)
    # 报名
    if sign_up:
        sign_up_account_list(app_title_list)
    # PK
    if pk:
        pk_by_account_list_vip(app_title_list, num)

if __name__ == '__main__':
    pk_100(num = 40, buy_ticket=False, sign_up=True)